package com.rollcall.wisdomroll.SQLiteDatabase;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;

/**
 * Created by lenovo on 2021-01-04.
 */

public class DBManager {
    private static DatabaseHelper helper;

    public static DatabaseHelper getInstance(Context context){
        if(helper == null){
            helper = new DatabaseHelper(context);
        }
        return helper;
    }
    //执行静态
    public static void execSQL(SQLiteDatabase db,String sql){
        if (db!=null){
            if (sql!=null && "".equals(sql)){
                db.execSQL(sql);
            }
        }
    }
}
